package com.example;

import java.util.concurrent.Callable;

public class MyCallable implements Callable<String> {

	@Override
	public String call() throws Exception {
		return Thread.currentThread().getName() + " 执行任务完成";
	}
	public class RunnableInterfaceExample {
	    public static void main(String[] args) {
	        MyRunnable myRunnable = new MyRunnable();
	        Thread thread = new Thread(myRunnable);
	        thread.start();
	    }
	}

}

